package com.gmd.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the usuario database table.
 * 
 */
@Entity
@Table(name="usuario")
@NamedQueries({
	@NamedQuery(name="findByUserName", query="SELECT o FROM Usuario o WHERE o.username = :username")
})
public class Usuario implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idusuario;
	private String name;
	private String password;
	private String tipousu;
	private String username;

	public Usuario() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	public int getIdusuario() {
		return this.idusuario;
	}

	public void setIdusuario(int idusuario) {
		this.idusuario = idusuario;
	}


	@Column(length=50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	@Column(length=30)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}


	@Column(length=30)
	public String getTipousu() {
		return this.tipousu;
	}

	public void setTipousu(String tipousu) {
		this.tipousu = tipousu;
	}


	@Column(length=30)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}